﻿<%@ Page Title="Gerenciar Instrutores/Monitores" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="InstrutorMonitor_Listar.aspx.cs" Inherits="ProjetoJornada.Interno.InstrutorMonitor_Listar" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script src="../javascript/menu_dropdown.js" type="text/javascript"></script>

    <link href="../CSS/cadastro.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 151px;
        }
        .style2
        {
            width: 202px;
        }
        .style3
        {
            width: 120px;
        }
    </style>
    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br />
    <asp:Label ID="Label2" runat="server" Text="Instrutores"></asp:Label>
    <br />
    <br />
    <asp:GridView ID="GridView_Instrutor" runat="server" AutoGenerateColumns="False"
        CellPadding="3" ForeColor="Black" GridLines="Vertical" 
        onrowdeleting="GridView_Instrutor_RowDeleting" Width="810px" 
        BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px">
        <Columns>
            <asp:BoundField AccessibleHeaderText="Nome" DataField="Nome" HeaderText="Nome"
                NullDisplayText="-" />
             <asp:BoundField AccessibleHeaderText="Email" DataField="Email" HeaderText="Email"
                NullDisplayText="-" />
               <asp:BoundField AccessibleHeaderText="Celular" DataField="Celular" HeaderText="Celular"
                NullDisplayText="-" />
                <asp:BoundField AccessibleHeaderText="Telefone" DataField="Telefone" HeaderText="Telefone"
                NullDisplayText="-" /> 
                <asp:BoundField AccessibleHeaderText="Cpf" DataField="Cpf" HeaderText="Cpf"
                NullDisplayText="-" /> 
                <asp:BoundField AccessibleHeaderText="ValorContrato" 
                DataField="ValorContrato" HeaderText="Valor do contrato"
                NullDisplayText="-" DataFormatString="{0:c}" /> 
                
            <asp:TemplateField>
                <ItemTemplate>
                    <a href='<%#"InstrutorMonitor_Editar.aspx?cpf=" + Eval("Cpf")%>' style="text-align: center;">
                        <asp:Image ID="imgEdit" runat="server" BorderStyle="None" ImageUrl="../imagens/edit.png" />
                    </a>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="center" />
            </asp:TemplateField>
            <asp:CommandField ShowDeleteButton="True" ButtonType="Image" 
                DeleteImageUrl="~/imagens/delete.png" DeleteText="" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:CommandField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="#CCCCCC" />
    </asp:GridView>
    <br />
    <br />
    <br />
    <asp:Label ID="Label1" runat="server" Text="Monitores"></asp:Label>
    <br />
    <br />
    <asp:GridView ID="GridView_Monitor" runat="server" AutoGenerateColumns="False"
        CellPadding="3" ForeColor="Black" GridLines="Vertical" 
        onrowdeleting="GridView_Monitor_RowDeleting" Width="810px" 
        BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px">
        <Columns>
            <asp:BoundField AccessibleHeaderText="Nome" DataField="Nome" HeaderText="Nome"
                NullDisplayText="-" />
             <asp:BoundField AccessibleHeaderText="Email" DataField="Email" HeaderText="Email"
                NullDisplayText="-" />
               <asp:BoundField AccessibleHeaderText="Celular" DataField="Celular" HeaderText="Celular"
                NullDisplayText="-" />
                <asp:BoundField AccessibleHeaderText="Telefone" DataField="Telefone" HeaderText="Telefone"
                NullDisplayText="-" /> 
                <asp:BoundField AccessibleHeaderText="Cpf" DataField="Cpf" HeaderText="Cpf"
                NullDisplayText="-" /> 
                <asp:BoundField AccessibleHeaderText="ValorContrato" 
                DataField="ValorContrato" HeaderText="Valor do contrato"
                NullDisplayText="-" DataFormatString="{0:c}" /> 
                
            <asp:TemplateField>
                <ItemTemplate>
                    <a href='<%#"InstrutorMonitor_Editar.aspx?cpf=" + Eval("Cpf")%>' style="text-align: center;">
                        <asp:Image ID="imgEdit" runat="server" BorderStyle="None" ImageUrl="../imagens/edit.png" />
                    </a>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="center" />
            </asp:TemplateField>
            <asp:CommandField ShowDeleteButton="True" ButtonType="Image" 
                DeleteImageUrl="~/imagens/delete.png" DeleteText=""  >
                <ItemStyle HorizontalAlign="Center" />
            </asp:CommandField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="#CCCCCC" />
    </asp:GridView>
</asp:Content>
